package com.platform.modules.prj.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.platform.common.utils.Query;
import com.platform.modules.prj.dao.PrjSuperviseDao;
import com.platform.modules.prj.entity.PrjSuperviseEntity;
import com.platform.modules.prj.service.PrjSuperviseService;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

@Service("prjSuperviseService")
public class PrjSuperviseServiceImpl extends ServiceImpl<PrjSuperviseDao, PrjSuperviseEntity> implements PrjSuperviseService {

	@Override
    public Page<PrjSuperviseEntity> queryPage(Map<String, Object> params) {
        Page<PrjSuperviseEntity> page = new Query<PrjSuperviseEntity>(params).getPage();
        List<PrjSuperviseEntity> list = baseMapper.selectPrjSupervisePage(page, params);
        return page.setRecords(list);
    }
}
